package com.mccrea.pattern.mediator;

/**
 * @Classname ConcreteColleague2
 * @Description 具体同事类2
 * @Date 2021/5/24 0024 11:32
 * @Created by Mccrea_Gao
 */
public class ConcreteColleague2 extends Colleague {
    @Override
    public void receive() {
        System.out.println("同事类2收到请求");
    }

    @Override
    public void send() {
        System.out.println("同事类2发出请求");
        mediator.relay(this);
    }
}
